.class Lde/dealdoktor/app/activities/Chat$1;
.super Landroid/webkit/WebChromeClient;
.source "Chat.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lde/dealdoktor/app/activities/Chat;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lde/dealdoktor/app/activities/Chat;


# direct methods
.method constructor <init>(Lde/dealdoktor/app/activities/Chat;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lde/dealdoktor/app/activities/Chat$1;->this$0:Lde/dealdoktor/app/activities/Chat;

    .line 44
    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onCloseWindow(Landroid/webkit/WebView;)V
    .locals 2
    .parameter "window"

    .prologue
    .line 47
    iget-object v0, p0, Lde/dealdoktor/app/activities/Chat$1;->this$0:Lde/dealdoktor/app/activities/Chat;

    iget-object v0, v0, Lde/dealdoktor/app/activities/Chat;->webview:Landroid/webkit/WebView;

    const-string v1, "http://cbox.ws/?n=3-3240009-nn5prs"

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 48
    return-void
.end method

.method public onJsAlert(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsResult;)Z
    .locals 3
    .parameter "view"
    .parameter "url"
    .parameter "message"
    .parameter "result"

    .prologue
    .line 64
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lde/dealdoktor/app/activities/Chat$1;->this$0:Lde/dealdoktor/app/activities/Chat;

    invoke-virtual {v1}, Lde/dealdoktor/app/activities/Chat;->getParent()Landroid/app/Activity;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, p3}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x104000a

    new-instance v2, Lde/dealdoktor/app/activities/Chat$1$1;

    invoke-direct {v2, p0, p4}, Lde/dealdoktor/app/activities/Chat$1$1;-><init>(Lde/dealdoktor/app/activities/Chat$1;Landroid/webkit/JsResult;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 68
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 70
    const/4 v0, 0x1

    return v0
.end method

.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .locals 1
    .parameter "view"
    .parameter "progress"

    .prologue
    .line 54
    const/16 v0, 0x64

    if-ne p2, v0, :cond_0

    .line 56
    iget-object v0, p0, Lde/dealdoktor/app/activities/Chat$1;->this$0:Lde/dealdoktor/app/activities/Chat;

    #getter for: Lde/dealdoktor/app/activities/Chat;->dialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lde/dealdoktor/app/activities/Chat;->access$0(Lde/dealdoktor/app/activities/Chat;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 57
    iget-object v0, p0, Lde/dealdoktor/app/activities/Chat$1;->this$0:Lde/dealdoktor/app/activities/Chat;

    #getter for: Lde/dealdoktor/app/activities/Chat;->dialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lde/dealdoktor/app/activities/Chat;->access$0(Lde/dealdoktor/app/activities/Chat;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 60
    :cond_0
    return-void
.end method
